package com.zxcz.mapper;

import java.util.List;
import java.util.Set;

import org.apache.ibatis.annotations.Param;

import com.zxcz.domain.Resource;

public interface ResourceMapper {

	List<Resource> queryResource();
	
	List<Resource> queryResourceCondition(
			@Param("pageNum") int pageNum, @Param("pageSize") int pageSize, 
			@Param("name") String name, @Param("startTime")String startTime, @Param("endTime")String endTime,
			@Param("account") String account);
	
	Long getTotal(@Param("name") String name, @Param("startTime")String startTime, @Param("endTime")String endTime,
			@Param("account") String account);

	Resource findResourceById(int id);
	
	Resource findResourceByOssObject(String ossObject);

	List<Resource> findResourceByName(String name);

	int insertResource(Resource resource);

	int deleteResourceById(int id);

	int updateResource(Resource resource);

	List<Resource> findResourceLikeName(String name);

	List<Resource> findResourceLikeVersion(String version);

	int deleteResourceByUserId(Integer id);
}
